<template>
	<view class="content">
		<view class="navbar" :style="{paddingTop: safeAreaInsets.top+ 'px'}">
			<view class="logo">
				<image class="logo-image" src="@/static/xmtx.png"></image>
				<text class="logo-text">我的</text>
				<view style="width: 166rpx;display: flex;justify-content: flex-end">
					<image style="width: 40rpx;" src="/static/qr-code-fill.png" mode="widthFix"></image>
				</view>
			</view>
		</view>
		<view>
			<u-cell :border="false">
				<view slot="title">
					<u-row customStyle="margin-bottom: 10px">
						<u-col>
							<view style="display: flex;align-items: flex-end;">
								<view style="font-size: 30rpx;color: #3D3D3D;">姓名</view>
								<image style="width: 32rpx;height: 32rpx;margin: 0 5rpx;" src="/static/seedling.png"
									mode=""></image>
								<view style="font-size: 20rpx;color:#13D069;">v.20</view>
							</view>
						</u-col>
					</u-row>
					<u--text size="24rpx" text="这个人很懒，还没有做自我介绍~" :lines="1" color="#999999"></u--text>
				</view>
				<text slot="value" class="u-slot-value"
					style="font-size: 24rpx;color: #13D069;font-weight:850rpx ;">编辑个人资料 ></text>
				<u-avatar slot="icon" shape="circle" size="35" src="https://cdn.uviewui.com/uview/album/1.jpg"
					customStyle="margin: -3px 5px -3px 0"></u-avatar>
			</u-cell>
		</view>
		<view>
			<view class="box1">
				<view class="box1top">
					<view class="tytext">
						<text class="tl1">电子校园卡</text>
						<text class="tl2">Design</text>
						<text class="tl3">By</text>
						<text class="tl4">新苗同学</text>
					</view>
					<view class="tytext2">
						<text style="color: #FFFFFF;font-size: 25rpx;">查看详情 ></text>
					</view>
				</view>
				<view class="box1bottom">
					<u-cell :border="false">
						<u-avatar slot="icon" src="https://cdn.uviewui.com/uview/album/1.jpg"
							style="margin-left: -5px;"></u-avatar>
						<view slot="title">
							<u-row>
								<u-col span="11">姓名</u-col>
							</u-row>
							<u-row>
								<image style="width: 32rpx;height: 32rpx;" src="/static/seedling.png"></image>
								<view style="font-size: 20rpx;color:#13D069;margin: 0 5rpx;">v.20</view>
								<view
									style="font-size: 20rpx;padding: 0 10rpx;color: #13D069;border: 1px #13D069 solid;border-radius: 4px;">
									已认证
								</view>
							</u-row>
						</view>
						<view slot="value" class="u-slot-value">
							<image style="width: 40rpx;" src="/static/qr-code-fill.png" mode="widthFix"></image>
						</view>
					</u-cell>
					<view style="display: flex;justify-content: space-between;">
						<view><u--image :showLoading="true" src="https://cdn.uviewui.com/uview/album/1.jpg"
								width="102rpx" height="150rpx" style="margin-left: 20rpx;"></u--image></view>
						<view style="flex: 1;">
							<u-grid col="4">
								<u-grid-item v-for="(baseListItem,baseListIndex) in baseList3" :key="baseListIndex"
									style="border-right: 1px #D8D8D8 solid;">
									<image :src="baseListItem.name" mode=""
										style="padding-top: 20rpx;width: 40rpx;margin-bottom: 10rpx;" mode="widthFix">
									</image>
									<text class="grid-text"
										style="color: #999999;font-size: 20rpx;">{{baseListItem.title}}</text>
								</u-grid-item>
							</u-grid>
							<u-cell :border="false">
								<view slot="title">
									<text
										style="color: #13D069;font-size: 28rpx;letter-spacing:10rpx">202153060232</text>

								</view>
								<view slot="value" class="u-slot-value">
									<u--image :showLoading="true" :src="xmtx" width="160rpx" height="50rpx"
										style="margin-left: 20rpx;"></u--image>
								</view>

							</u-cell>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view>
			<u-cell-group>
				<u-cell arrow-direction="down" style="background-color: #EFEFEF;border-radius:16rpx ;margin-top: 34rpx;"
					:border="false">
					<text slot="title" style="font-size: 28rpx; font-weight: 600;">我的消息</text>
					<image slot="icon" src="/static/xx.png" style="width: 32rpx;margin-right: 10rpx;" mode="widthFix">
					</image>
					<text slot="value" style="color: #13D069;font-size: 25rpx;">查看详情></text>
				</u-cell>
			</u-cell-group>
		</view>
		<view style="background-color: #EFEFEF;border-radius:16rpx ;margin-top: 34rpx;">
			<u-cell arrow-direction="down" :border="false" v-for="item in myList" style="height: 85rpx;margin: 5rpx 0;">
				<text slot="title" style="font-size: 28rpx; font-weight: 600;">{{item.name}}</text>
				<image slot="icon" :src="item.src" style="width: 32rpx;margin-right: 10rpx;" mode="widthFix"></image>
				<text slot="value" style="color: #13D069;font-size: 25rpx;">查看详情></text>
			</u-cell>
		</view>
		<view>
			<u-button :custom-style="aa" class="custom-style" text="退出登录"></u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			const {
				safeAreaInsets
			} = uni.getSystemInfoSync()
			return {
				safeAreaInsets,
				xmtx: require("@/static/logo.png"),
				aa: {

					width: "100%",
					height: "68rpx",
					color: "white",
					background: "#FD4C46",
					marginTop: "35rpx",
					borderRadius: "20rpx"
				},
				list1: [
					'https://cdn.uviewui.com/uview/swiper/swiper1.png',
					'https://cdn.uviewui.com/uview/swiper/swiper2.png',
					'https://cdn.uviewui.com/uview/swiper/swiper3.png',
				],
				text1: 'uView UI众多组件覆盖开发过程的各个需求，组件功能丰富，多端兼容。让您快速集成，开箱即用',
				text2: 'uView UI众多的贴心小工具，是您开发过程中召之即来的利器，让您飞镖在手，百步穿杨',
				text3: 'uView UI收集众多的常用页面和布局，减少开发者的重复工作，让您专注逻辑，事半功倍',
				text4: [
					'寒雨连江夜入吴',
					'平明送客楚山孤',
					'洛阳亲友如相问',
					'一片冰心在玉壶'
				],
				text5: '涵盖uniapp各个方面，给开发者方向指导和设计理念，让您茅塞顿开，一马平川',
				baseList: [{
						name: 'photo',
						title: '图片'
					},
					{
						name: 'lock',
						title: '锁头'
					},
					{
						name: 'star',
						title: '星星'
					},
				],
				baseList2: [{
						name: 'photo',
						title: '图片222222'
					},
					{
						name: 'lock',
						title: '锁头2222222'
					},
					{
						name: 'star',
						title: '星星'
					},
					{
						name: 'photo',
						title: '图片'
					},
					{
						name: 'lock',
						title: '锁头'
					},
					{
						name: 'star',
						title: '星星'
					},
				],
				baseList3: [{
						name: '/static/充值.png',
						title: '在线充值'
					},
					{
						name: '/static/详情.png',
						title: '明细查询'
					},
					{
						name: '/static/房屋抵押.png',
						title: '卡片挂失'
					},
					{
						name: '/static/充值.png',
						title: '修改密码'
					},

				],
				myList: [{
						name: '我的勋章',
						src: '/static/xz.png'
					},
					{
						name: '我的奖励',
						src: '/static/jl.png'
					},
					{
						name: '我的认证',
						src: '/static/rz.png'
					},
					{
						name: '隐私政策',
						src: '/static/zc.png'
					},
					{
						name: '我的管理',
						src: '/static/gl.png'
					},
					{
						name: '其他设置',
						src: '/static/sz.png'
					}
				]
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.content {
		margin: 0 20rpx;
		padding: 0;

	}

	.sl {
		width: 100%;
		text-align: center;
		margin: 10rpx 0;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
		overflow: hidden;
		font-size: 18rpx;
		color: #999999;
	}

	.sl2 {
		width: 100%;
		margin: 5rpx 0;
		text-align: center;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
		overflow: hidden;

		color: #999999;
	}

	.zuoce {
		margin-left: 50rpx;


	}

	.box1 {
		margin-top: 17rpx;

		width: 100%;
		background-color: #13D069;
		border-radius: 14rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-between;

		.box1top {
			width: 100%;
			display: flex;
			align-items: center;
			justify-content: space-between;
			height: 67rpx;
			border-radius: 14rpx;

		}

		.box1bottom {
			border: 1px solid #13D069;
			padding: 20rpx;
			flex: 1;
			background-color: white;
			border-radius: 14rpx;

			.updatetp {
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				align-items: center;

				.yc {
					flex: 1;
					display: flex;
					flex-direction: column;

					&-son {
						flex: 1;
					}
				}

				.tx {
					flex: 1;
					display: flex;
					flex-direction: column;
				}
			}
		}
	}

	.tytext {
		flex: 1;
		margin-left: 17rpx;
		font-weight: bold;
		font-style: italic;
		color: #FFFFFF;

		.tl1 {
			font-size: 30rpx;

		}

		.tl2 {
			font-size: 20rpx;
			margin: 0 10rpx;

		}

		.tl3 {
			font-size: 20rpx;

		}

		.tl4 {
			font-size: 20rpx;
			margin: 10rpx;

		}

		.tr {
			color: #13D069;
			margin-left: 20rpx;
		}
	}

	.tytext2 {
		margin-right: 17rpx;
		font-size: 17rpx;
		font-weight: bold;

		.tl {
			color: #FFFFFF;

		}

		.tr {
			color: #FFFFFF;
			margin-left: 20rpx;
		}
	}

	.logo {
		display: flex;
		align-items: center;
		// height: 64rpx;
		justify-content: space-around;
		padding-top: 20rpx;

		.logo-image {
			width: 166rpx;
			height: 39rpx;
		}


		.logo-text {
			text-align: center;
			flex: 1;
			line-height: 28rpx;
			color: #3D3D3D;
			margin: 2rpx 0 0 20rpx;
			padding-left: 1rpx;
			font-size: 30rpx;
			font-weight: 800;
		}
	}
</style>